set (DEMO_EXE demo)

link_directories(${LIBS})

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -lpthread")
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src SOURCE_DEMO)
add_executable(${DEMO_EXE} ${SOURCE_DEMO})

#target_include_directories(${DEMO_EXE} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include)


## 链接库
target_link_libraries(${DEMO_EXE} zlog dvbpsi pthread m)

## 设置可执行文件的输出路径
#set (EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/src)
set_target_properties(${DEMO_EXE} PROPERTIES
	RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/src  ## linux
	RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/src	#debug
	RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/src)  #release
	
